package com.example.demo.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * @author: Tian
 * @version: 1.0
 * @since: 1.0
 * @date: 2024/4/17/19:05
 */
@ApiModel("员工信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Staff {
    @ApiModelProperty("员工id")
    private Integer id;
    @ApiModelProperty("员工编号")
    private Integer staffid;
    @ApiModelProperty("员工姓名")
    private String staffname;
    @ApiModelProperty("员工密码")
    private String password;
    @ApiModelProperty("员工身份证号")
    private String idcard;
    @ApiModelProperty("员工地址")
    private String address;
    @ApiModelProperty("员工电话")
    private String phone;
    @ApiModelProperty("入职日期")
    private LocalDate entrytime;
    @ApiModelProperty("离职日期")
    private LocalDate leavetime;
    @ApiModelProperty("入职状态 0为入职 1入职 2调离")
    private Integer state;
    @ApiModelProperty("角色id")
    private Integer roleid;
    @ApiModelProperty("部门id")
    private Integer deptid;
    @ApiModelProperty("头像地址")
    private String url;


}
